package com.qf.topic_exchange;/*
 *保护你的大熊
 *2021/12/18
 *14:26
 */

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "topic_queue1")
public class TopicListener1 {

    @RabbitHandler
    public void onMessage(String msg){
        System.out.println("主题模式 ===== 1：" + msg);
    }
}
